<%@ page import="Worker.WorkerDao" %>
<%@ page import="Worker.WorkerEnity" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/14
  Time: 10:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>职工管理</title>
</head>
<script type="text/javascript">
    function onUpdate() {
        alert("数据已修改");
    }
    function onDelete() {
        alert("数据已删除");
    }
</script>
<link href="SystemerNav.css" rel="stylesheet" type="text/css">
<body background="/LoginInterface/loginFace.jpg">

    <%
        String workerNo=request.getParameter("workerNo");
        WorkerDao workerDao=new WorkerDao();
        WorkerEnity workerEnity=workerDao.getWorker(workerNo);
    %>
 <form action="/Navigator/Systemer/updateWorkerServlet" method="post">
     <table>
         <tr><td colspan="7" width="350px" align="center">职工详细信息</td></tr>
             <tr><td>工号</td>
                 <td>姓名</td>
                 <td>性别</td>
                 <td>密码</td>
                 <td>职工类型</td>
                 <td>数据修改</td>
                 <td>数据删除</td>
             </tr>
         <tr>
             <td><%=workerEnity.getWorkerNo()%></td>
             <td><input type="text" name="workerName" value="<%=workerEnity.getWorkerName()%>"></td>
             <td><input type="text" name="sex" value="<%=workerEnity.getSex()%>"></td>
             <td><input type="text" name="WorkPas" value="<%=workerEnity.getWorkpas()%>"></td>
             <td><input type="text" name="post" value="<%=workerEnity.getPost()%>"></td>
             <td ><input type="submit" value="修改" onclick="onUpdate()">
                  <input type="hidden" name="workerNo" value="<%=workerEnity.getWorkerNo()%>"></td>
             <td><a href="/Navigator/Systemer/deleteWorkerServlet?workerNo=<%=workerEnity.getWorkerNo()%>" onclick="onDelete()">删除</a></td>
         </tr>

     </table>

 </form>


</body>
</html>
